package com.acce.product.config;

public enum ErrorCodes {

	oper_success("200", "数据操作成功!"),
	
	query_goods_failure("30010101", "企业查询商品信息失败!"),
	add_goods_failure("30010201", "添加商品分类信息失败！"),
	update_goods_failure("30010202", "添加商品分类信息失败！"),
	create_buylist("30010301", "保存采购单信息失败！"),
	
	create_purchase_failure("30020101", "创建申购单失败！"),
	query_purchaseheader_failure("30020201", "查询申购单表头信息失败！"),
	query_purchaselist_failure("30020202", "查询申购单明细信息失败！"),
	update_purchase_failure("30020301", "修改申购单信息信息失败！"),
	delete_purchase_failure("30020401", "删除申购单信息失败！"),
	
	create_inquiry_failure("30040101", "申购单创建询价信息失败！"),
	create_dirinq_failure("30040102", "直接创建询价信息失败！"),
	query_inquiryheader_failure("30040201", "采购商查询询价单表头信息失败！"),
	query_inquirylist_failure("30040202", "采购商查询询价单明细信息失败！"),
	query_chainqheader_failure("30040301", "渠道商查询询价单表头信息失败！"),
	query_chainqlist_failure("30040302", "渠道商查询询价单明细信息失败！"),
	delete_inquiry_failure("30040401", "删除询价单信息失败！"),

	create_quote_failure("30050101", "创建报价单信息失败！"),
	query_chaquoheader_failure("30050201", "渠道商查询报价单表头信息失败！"),
	query_chaquolist_failure("30050202", "渠道商查询报价单明细信息失败！"),
	query_quoteheader_failure("30050301", "采购商查询报价单表头信息失败！"),
	query_quotelist_failure("30050302", "采购商查询报价单明细信息失败！"),
	delete_quote_failure("30050401", "删除报价单失败！")
	
	;
	
	private String code;
	
	private String message;
	
	private ErrorCodes(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	
}
